# coding=utf-8
import os

from flask import Flask

app = Flask(__name__)


@app.route("/")
def index():
    return "hello world"


@app.route("/process")
def process():
    val = os.popen('ps -ef')
    print(val)
    return str(val.readlines())


if __name__ == '__main__':
    app.run(port=80, host='0.0.0.0', debug=True)
